package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import com.itheima.health.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface MemberDao {
//根据手机号查询
    Member selectByPhoneNumber(@Param("phoneNumber") String phoneNumber);
//根据id更新非空字段
    void updateByIdSelective(Member member);
//插入
    void insert(Member member);
//根据ID查询
    Member selectById(Integer id);
    int selectCountByMonth(@Param("year") int year, @Param("month") int month);




}
